import request from '@/utils/request'

// 提交单据
// data{id: '', tableName: ''}
export function commit(data) {
  return request({
    url: '/workflow/commit',
    method: 'post',
    data: data
  })
}


export function getFlowRecordList(data) {
  return request({
    url: '/workflow/getFlowRecordList',
    method: 'post',
    data: data
  })
}


export function flowXmlAndNode(data) {   
  return request({
    url: '/workflow/flowXmlAndNode',
    method: 'post',
    data: data
  })
}